package com.gopay.checkorder.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.gopay.common.domain.BaseEntity;

@Entity
@Table(name = "ACPS_ACCOUNTING_ROLE_DEF")
public class AccountRoleDef extends BaseEntity {

    /**
     * 
     */
    private static final long serialVersionUID = -1417840536368244271L;

    /**
     * 记录流水号
     */
    @Id
    @Column(name = "INFO_SQ")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "ACPS_ACCOUNTING_ROLE_DEF_SEQ")
    @SequenceGenerator(name = "ACPS_ACCOUNTING_ROLE_DEF_SEQ", allocationSize = 1, initialValue = 1, sequenceName = "ACPS_ACCOUNTING_ROLE_DEF_SEQ")
    private int id;

    /**
     * 国付宝内部交易码
     */
    @Column(name = "GOPAY_INT_TXN_CD")
    private String gopayIntTxnCd;

    /**
     * 付款方式
     */
    @Column(name = "PAY_CHANNEL")
    private String payChannel;

    /**
     * 手续费承担方
     */
    @Column(name = "ORDER_FEE_PAYER")
    private String orderFeePayer;

    /**
     * 记账点
     */
    @Column(name = "ACCOUNTING_POINT")
    private String accountPoint;

    /**
     * 记账步骤
     */
    @Column(name = "ACCOUNTING_STEP")
    private int accountStep;

    /**
     * 借贷方向
     */
    @Column(name = "DR_CR")
    private String drOrCr;

    /**
     * 账户会计分类代码
     */
    @Column(name = "SCHEMA_CODE")
    private String schemaCode;

    /**
     * 资金描述
     */
    @Column(name = "AMT_DESC")
    private String amtDesc;

    /**
     * 创建时间
     */
    @Column(name = "CREATED_TS")
    private Date created;

    /**
     * 修改时间
     */
    @Column(name = "LAST_UPD_TS")
    private Date modified;

    /**
     * 最后修改交易码
     */
    @Column(name = "LAST_UPD_TRANCODE")
    private String lastUpdTrnaCode;

    /**
     * 规则类型
     */
    @Column(name = "ROLE_TYPE")
    private String roleType;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getGopayIntTxnCd() {
        return gopayIntTxnCd;
    }

    public void setGopayIntTxnCd(String gopayIntTxnCd) {
        this.gopayIntTxnCd = gopayIntTxnCd;
    }

    public String getPayChannel() {
        return payChannel;
    }

    public void setPayChannel(String payChannel) {
        this.payChannel = payChannel;
    }

    public String getOrderFeePayer() {
        return orderFeePayer;
    }

    public void setOrderFeePayer(String orderFeePayer) {
        this.orderFeePayer = orderFeePayer;
    }

    public String getAccountPoint() {
        return accountPoint;
    }

    public void setAccountPoint(String accountPoint) {
        this.accountPoint = accountPoint;
    }

    public int getAccountStep() {
        return accountStep;
    }

    public void setAccountStep(int accountStep) {
        this.accountStep = accountStep;
    }

    public String getDrOrCr() {
        return drOrCr;
    }

    public void setDrOrCr(String drOrCr) {
        this.drOrCr = drOrCr;
    }

    public String getSchemaCode() {
        return schemaCode;
    }

    public void setSchemaCode(String schemaCode) {
        this.schemaCode = schemaCode;
    }

    public String getAmtDesc() {
        return amtDesc;
    }

    public void setAmtDesc(String amtDesc) {
        this.amtDesc = amtDesc;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getModified() {
        return modified;
    }

    public void setModified(Date modified) {
        this.modified = modified;
    }

    public String getLastUpdTrnaCode() {
        return lastUpdTrnaCode;
    }

    public void setLastUpdTrnaCode(String lastUpdTrnaCode) {
        this.lastUpdTrnaCode = lastUpdTrnaCode;
    }

    public String getRoleType() {
        return roleType;
    }

    public void setRoleType(String roleType) {
        this.roleType = roleType;
    }
}
